# @author: uuz
# encoding = utf-8

from ext import db


class QandA(db.Model):
    __tablename__ = "q_and_a"
    id = db.Column(db.Integer, nullable=False, primary_key=True, autoincrement=True)
    hotel_id = db.Column(db.Integer, db.ForeignKey("hotel.id"))
    question = db.Column(db.String(30), nullable=True)
    answer = db.Column(db.String(30), nullable=True)
